package com.paireach.szwolaiyun.sz_util;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressDialogUtil {
    private ProgressDialog pd;
    private static ProgressDialogUtil util;

    public ProgressDialogUtil(Context mContext) {
        pd = new ProgressDialog(mContext);
        pd.setMessage("加载中...");
        pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        pd.setIndeterminate(true);
    }

    public void showDialog() {
        pd.show();
    }

    public void dismissDialog() {
        pd.dismiss();
    }
}
